import { AxiosPromise } from "axios";
import { ICheckProject } from "../../checkProject/types";
import request from "@/utils/request";

/*  */
export function assignProjectToUser(): AxiosPromise<ICheckProject[]> {
  return request({
    url: `/project/assign`,
    method: "get",
  });
}

/*  */
export function CalculateOptimalSort(): AxiosPromise {
  return request({
    url: `/project/calculate`,
    method: "get",
  });
}

/*  */
export function queryUnCheckProject(): AxiosPromise {
  return request({
    url: `/project/queryUnCheckProject`,
    method: "get",
  });
}

/*  */
export function ULineProject(projectId: string): AxiosPromise {
  return request({
    url: `/project/lineUp/${projectId}`,
    method: "get",
  });
}
/*  */
export function DLineProject(projectId: string): AxiosPromise {
  return request({
    url: `/project/lineOut/${projectId}`,
    method: "get",
  });
}
/*  */
export function FLineProject(projectId: string): AxiosPromise {
  return request({
    url: `/project/finishedDo/${projectId}`,
    method: "get",
  });
}
/*  */
export function queryProjectCondition(projectId: string): AxiosPromise {
  return request({
    url: `/project/lineConditionByProjectId/${projectId}`,
    method: "get",
  });
}
